import request from '@/utils/request'

// 创建记分员 房间与成员绑定
export function createRoomUserBind(data) {
  return request({
    url: '/jifenyuan/room-user-bind/create',
    method: 'post',
    data: data
  })
}

// 更新记分员 房间与成员绑定
export function updateRoomUserBind(data) {
  return request({
    url: '/jifenyuan/room-user-bind/update',
    method: 'put',
    data: data
  })
}

// 删除记分员 房间与成员绑定
export function deleteRoomUserBind(id) {
  return request({
    url: '/jifenyuan/room-user-bind/delete?id=' + id,
    method: 'delete'
  })
}

// 获得记分员 房间与成员绑定
export function getRoomUserBind(id) {
  return request({
    url: '/jifenyuan/room-user-bind/get?id=' + id,
    method: 'get'
  })
}

// 获得记分员 房间与成员绑定分页
export function getRoomUserBindPage(query) {
  return request({
    url: '/jifenyuan/room-user-bind/page',
    method: 'get',
    params: query
  })
}

// 导出记分员 房间与成员绑定 Excel
export function exportRoomUserBindExcel(query) {
  return request({
    url: '/jifenyuan/room-user-bind/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
